<!--postItem模板-->
<template name="postItem">
    <div class="post">
        <div class="post-content">
            <h3><a href="{{url}}">{{title}}</a><span>{{domain}}</span></h3>
            <p>
                submitted by {{author}}
                <!--ownPost判断是否为自己提交-->
                {{#if ownPost}}<a href="{{pathFor 'postEdit'}}">Edit</a>{{/if}}
            </p>
        </div>
        <!--pathFor自动寻找该模板地址-->
        <a href="{{pathFor 'postPage' }}" class="discuss btn btn-default">查看详情</a>
    </div>
</template>